﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 命令模式
{
    /// <summary>
    /// 执行者   //把命令和执行者分开 
    /// </summary>
    public class Receiver
    {

        public void Read()
        {
            Console.WriteLine("Read");
        }

        public void Save()
        {
            Console.WriteLine("Save");
        }

        public void Write()
        {
            Console.WriteLine("Write");
        }
    }
}
